//
// Created by HC_yyt on 2021/7/22/022.
//

#ifndef NDK_DEMO_BTMPHANDLER_H
#define NDK_DEMO_BTMPHANDLER_H
#include <jni.h>
#include "iostream"
#include "android/bitmap.h"
#include "opencv2/opencv.hpp"
#include "android/log.h"
#define LOG_TAG "myopencvhandler.cpp"
#define LOGEI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)



jobject bmp2grayhandler(JNIEnv *env, jobject thiz, jobject bitmap);
jobject mat2bitmap(JNIEnv *env, cv::Mat &src, bool needPremultiplyAlpha, jobject bitmap_config);

#endif //NDK_DEMO_BTMPHANDLER_H
